import request from ".";

export const getDelivery = () => {
  return request({
    url: "/manageDelivery/getDelivery",
    method: "get",
  });
};

export const searchDelivery = (d_name) => {
  return request({
    url: "/manageDelivery/findDelivery",
    method: "get",
    params: {
      d_name: d_name,
    },
  });
};

export const delDelivery = (d_id) => {
  return request({
    url: "/manageDelivery/deleteDelivery",
    method: "post",
    data: {
      delivery_id: d_id,
    },
  });
};
